#!/bin/sh
go build monitor_agent.go
go build --buildmode=plugin -o /usr/local/lib/monitor_agent/sysload.so collectors/sysload.go
go build --buildmode=plugin -o /usr/local/lib/monitor_agent/ifstat.so collectors/ifstat.go
go build --buildmode=plugin -o /usr/local/lib/monitor_agent/dfstat.so collectors/dfstat.go
go build --buildmode=plugin -o /usr/local/lib/monitor_agent/procstats.so collectors/procstats.go
go build --buildmode=plugin -o /usr/local/lib/monitor_agent/scripts.so collectors/scripts.go
